package com.yantu.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 综合实训课程设计
 * @since 2022-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Class对象", description="")
public class Class implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "班级id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "班级名字")
    private String name;

    @ApiModelProperty(value = "班级创建者id")
    private Integer userId;

    @ApiModelProperty(value = "班级人数")
    private Integer studentCount;

    @ApiModelProperty(value = "班级创建时间")
    private Date createTime;

    @ApiModelProperty(value = "班级是否删除")
    @TableLogic
    private Boolean deleted;


}
